HL7 FHIR Implementation Guide: ZM-Core Release 1 - Zambia
0.1.0 -
HL7 FHIR Implementation Guide: ZM-Core Release 1 - Zambia - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Official URL: http://hapi.moh.gov.zm/fhir/StructureDefinition/zm-core-group | Version: 0.1.0 | |||
| Active as of 2026-08-12 | Computable Name: ZMCoreGroup | |||
A governed national, provincial, district, facility, patient, or workforce distribution group used for recipient resolution.
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots, and their representations.
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | Group | Group of multiple entities | |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
0..* | Resource | Contained, inline Resources | |
![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
SΣ | 1..* | Identifier | Business Identifier for this Group |
![]() ![]() |
?!SΣ | 1..1 | boolean | Whether this group's record is in active use |
![]() ![]() |
SΣ | 1..1 | code | person | animal | practitioner | device | careteam | healthcareservice | location | organization | relatedperson | specimen Binding: GroupType (required): Types of resources that are part of group. |
![]() ![]() |
SΣ | 1..1 | code | definitional | enumerated Binding: GroupMembershipBasis (required): The basis for membership in a group |
![]() ![]() |
SΣ | 1..1 | CodeableConcept | Kind of Group members Binding Description: (example): Kind of particular resource; e.g. cow, syringe, lake, etc. |
![]() ![]() |
SΣ | 1..1 | string | Label for Group |
![]() ![]() |
S | 0..1 | markdown | Natural language description of the group |
![]() ![]() |
SΣ | 1..1 | Reference(ZM-Core Organization Profile | ZM-Core Practitioner Role Profile) | Entity that is the custodian of the Group's definition |
![]() ![]() |
SΣ | 0..* | BackboneElement | Include / Exclude group members by Trait |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
Σ | 1..1 | CodeableConcept | Kind of characteristic Binding Description: (example): List of characteristics used to describe group members; e.g. gender, age, owner, location, etc. |
![]() ![]() ![]() |
Σ | 1..1 | Value held by characteristic Binding Description: (example): Value of descriptive member characteristic; e.g. red, male, pneumonia, Caucasian, etc. | |
![]() ![]() ![]() ![]() |
CodeableConcept | |||
![]() ![]() ![]() ![]() |
boolean | |||
![]() ![]() ![]() ![]() |
Quantity | |||
![]() ![]() ![]() ![]() |
Range | |||
![]() ![]() ![]() ![]() |
Reference(Any) | |||
![]() ![]() ![]() |
Σ | 1..1 | boolean | Group includes or excludes |
![]() ![]() |
S | 0..* | BackboneElement | Who or what is in group |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
S | 1..1 | Reference(CareTeam | Device | Group | HealthcareService | Location | Organization | Patient | Practitioner | PractitionerRole | RelatedPerson | Specimen) | Reference to the group member |
![]() ![]() ![]() |
S | 0..1 | Period | Period member belonged to the group |
![]() ![]() ![]() |
S | 0..1 | boolean | If member is no longer in group |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| Group.type | Base | required | Group Type | 📍5.0.0 | FHIR Std. |
| Group.membership | Base | required | Group Membership Basis | 📍5.0.0 | FHIR Std. |
| Group.code | Base | example | Not State | Unknown | |
| Group.characteristic.code | Base | example | Not State | Unknown | |
| Group.characteristic.value[x] | Base | example | Not State | Unknown |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | Group | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Group | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | Group | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | Group | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Group | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | Group | Group of multiple entities | |
![]() ![]() |
S | 1..* | Identifier | Business Identifier for this Group |
![]() ![]() |
S | 1..1 | boolean | Whether this group's record is in active use |
![]() ![]() |
S | 1..1 | code | person | animal | practitioner | device | careteam | healthcareservice | location | organization | relatedperson | specimen |
![]() ![]() |
S | 1..1 | code | definitional | enumerated |
![]() ![]() |
S | 1..1 | CodeableConcept | Kind of Group members |
![]() ![]() |
S | 1..1 | string | Label for Group |
![]() ![]() |
S | 0..1 | markdown | Natural language description of the group |
![]() ![]() |
S | 1..1 | Reference(ZM-Core Organization Profile | ZM-Core Practitioner Role Profile) | Entity that is the custodian of the Group's definition |
![]() ![]() |
S | 0..* | BackboneElement | Include / Exclude group members by Trait |
![]() ![]() |
S | 0..* | BackboneElement | Who or what is in group |
![]() ![]() ![]() |
S | 1..1 | Reference(CareTeam | Device | Group | HealthcareService | Location | Organization | Patient | Practitioner | PractitionerRole | RelatedPerson | Specimen) | Reference to the group member |
![]() ![]() ![]() |
S | 0..1 | Period | Period member belonged to the group |
![]() ![]() ![]() |
S | 0..1 | boolean | If member is no longer in group |
Documentation for this format | ||||
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | Group | Group of multiple entities | |||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: AllLanguages (required): IETF language tag for a human language
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() |
SΣ | 1..* | Identifier | Business Identifier for this Group | ||||
![]() ![]() |
?!SΣ | 1..1 | boolean | Whether this group's record is in active use | ||||
![]() ![]() |
SΣ | 1..1 | code | person | animal | practitioner | device | careteam | healthcareservice | location | organization | relatedperson | specimen Binding: GroupType (required): Types of resources that are part of group. | ||||
![]() ![]() |
SΣ | 1..1 | code | definitional | enumerated Binding: GroupMembershipBasis (required): The basis for membership in a group | ||||
![]() ![]() |
SΣ | 1..1 | CodeableConcept | Kind of Group members Binding Description: (example): Kind of particular resource; e.g. cow, syringe, lake, etc. | ||||
![]() ![]() |
SΣ | 1..1 | string | Label for Group | ||||
![]() ![]() |
S | 0..1 | markdown | Natural language description of the group | ||||
![]() ![]() |
Σ | 0..1 | unsignedInt | Number of members | ||||
![]() ![]() |
SΣ | 1..1 | Reference(ZM-Core Organization Profile | ZM-Core Practitioner Role Profile) | Entity that is the custodian of the Group's definition | ||||
![]() ![]() |
SΣ | 0..* | BackboneElement | Include / Exclude group members by Trait | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() |
Σ | 1..1 | CodeableConcept | Kind of characteristic Binding Description: (example): List of characteristics used to describe group members; e.g. gender, age, owner, location, etc. | ||||
![]() ![]() ![]() |
Σ | 1..1 | Value held by characteristic Binding Description: (example): Value of descriptive member characteristic; e.g. red, male, pneumonia, Caucasian, etc. | |||||
![]() ![]() ![]() ![]() |
CodeableConcept | |||||||
![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() |
Quantity | |||||||
![]() ![]() ![]() ![]() |
Range | |||||||
![]() ![]() ![]() ![]() |
Reference(Any) | |||||||
![]() ![]() ![]() |
Σ | 1..1 | boolean | Group includes or excludes | ||||
![]() ![]() ![]() |
0..1 | Period | Period over which characteristic is tested | |||||
![]() ![]() |
S | 0..* | BackboneElement | Who or what is in group | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() |
S | 1..1 | Reference(CareTeam | Device | Group | HealthcareService | Location | Organization | Patient | Practitioner | PractitionerRole | RelatedPerson | Specimen) | Reference to the group member | ||||
![]() ![]() ![]() |
S | 0..1 | Period | Period member belonged to the group | ||||
![]() ![]() ![]() |
S | 0..1 | boolean | If member is no longer in group | ||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| Group.language | Base | required | All Languages | 📍5.0.0 | FHIR Std. |
| Group.type | Base | required | Group Type | 📍5.0.0 | FHIR Std. |
| Group.membership | Base | required | Group Membership Basis | 📍5.0.0 | FHIR Std. |
| Group.code | Base | example | Not State | Unknown | |
| Group.characteristic.code | Base | example | Not State | Unknown | |
| Group.characteristic.value[x] | Base | example | Not State | Unknown |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | Group | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Group | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | Group | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | Group | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Group | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | Group | Group of multiple entities | |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
0..* | Resource | Contained, inline Resources | |
![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
SΣ | 1..* | Identifier | Business Identifier for this Group |
![]() ![]() |
?!SΣ | 1..1 | boolean | Whether this group's record is in active use |
![]() ![]() |
SΣ | 1..1 | code | person | animal | practitioner | device | careteam | healthcareservice | location | organization | relatedperson | specimen Binding: GroupType (required): Types of resources that are part of group. |
![]() ![]() |
SΣ | 1..1 | code | definitional | enumerated Binding: GroupMembershipBasis (required): The basis for membership in a group |
![]() ![]() |
SΣ | 1..1 | CodeableConcept | Kind of Group members Binding Description: (example): Kind of particular resource; e.g. cow, syringe, lake, etc. |
![]() ![]() |
SΣ | 1..1 | string | Label for Group |
![]() ![]() |
S | 0..1 | markdown | Natural language description of the group |
![]() ![]() |
SΣ | 1..1 | Reference(ZM-Core Organization Profile | ZM-Core Practitioner Role Profile) | Entity that is the custodian of the Group's definition |
![]() ![]() |
SΣ | 0..* | BackboneElement | Include / Exclude group members by Trait |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
Σ | 1..1 | CodeableConcept | Kind of characteristic Binding Description: (example): List of characteristics used to describe group members; e.g. gender, age, owner, location, etc. |
![]() ![]() ![]() |
Σ | 1..1 | Value held by characteristic Binding Description: (example): Value of descriptive member characteristic; e.g. red, male, pneumonia, Caucasian, etc. | |
![]() ![]() ![]() ![]() |
CodeableConcept | |||
![]() ![]() ![]() ![]() |
boolean | |||
![]() ![]() ![]() ![]() |
Quantity | |||
![]() ![]() ![]() ![]() |
Range | |||
![]() ![]() ![]() ![]() |
Reference(Any) | |||
![]() ![]() ![]() |
Σ | 1..1 | boolean | Group includes or excludes |
![]() ![]() |
S | 0..* | BackboneElement | Who or what is in group |
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() |
S | 1..1 | Reference(CareTeam | Device | Group | HealthcareService | Location | Organization | Patient | Practitioner | PractitionerRole | RelatedPerson | Specimen) | Reference to the group member |
![]() ![]() ![]() |
S | 0..1 | Period | Period member belonged to the group |
![]() ![]() ![]() |
S | 0..1 | boolean | If member is no longer in group |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| Group.type | Base | required | Group Type | 📍5.0.0 | FHIR Std. |
| Group.membership | Base | required | Group Membership Basis | 📍5.0.0 | FHIR Std. |
| Group.code | Base | example | Not State | Unknown | |
| Group.characteristic.code | Base | example | Not State | Unknown | |
| Group.characteristic.value[x] | Base | example | Not State | Unknown |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | Group | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Group | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | Group | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | Group | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Group | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Differential View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | Group | Group of multiple entities | |
![]() ![]() |
S | 1..* | Identifier | Business Identifier for this Group |
![]() ![]() |
S | 1..1 | boolean | Whether this group's record is in active use |
![]() ![]() |
S | 1..1 | code | person | animal | practitioner | device | careteam | healthcareservice | location | organization | relatedperson | specimen |
![]() ![]() |
S | 1..1 | code | definitional | enumerated |
![]() ![]() |
S | 1..1 | CodeableConcept | Kind of Group members |
![]() ![]() |
S | 1..1 | string | Label for Group |
![]() ![]() |
S | 0..1 | markdown | Natural language description of the group |
![]() ![]() |
S | 1..1 | Reference(ZM-Core Organization Profile | ZM-Core Practitioner Role Profile) | Entity that is the custodian of the Group's definition |
![]() ![]() |
S | 0..* | BackboneElement | Include / Exclude group members by Trait |
![]() ![]() |
S | 0..* | BackboneElement | Who or what is in group |
![]() ![]() ![]() |
S | 1..1 | Reference(CareTeam | Device | Group | HealthcareService | Location | Organization | Patient | Practitioner | PractitionerRole | RelatedPerson | Specimen) | Reference to the group member |
![]() ![]() ![]() |
S | 0..1 | Period | Period member belonged to the group |
![]() ![]() ![]() |
S | 0..1 | boolean | If member is no longer in group |
Documentation for this format | ||||
Snapshot ViewView
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | Group | Group of multiple entities | |||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: AllLanguages (required): IETF language tag for a human language
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() |
SΣ | 1..* | Identifier | Business Identifier for this Group | ||||
![]() ![]() |
?!SΣ | 1..1 | boolean | Whether this group's record is in active use | ||||
![]() ![]() |
SΣ | 1..1 | code | person | animal | practitioner | device | careteam | healthcareservice | location | organization | relatedperson | specimen Binding: GroupType (required): Types of resources that are part of group. | ||||
![]() ![]() |
SΣ | 1..1 | code | definitional | enumerated Binding: GroupMembershipBasis (required): The basis for membership in a group | ||||
![]() ![]() |
SΣ | 1..1 | CodeableConcept | Kind of Group members Binding Description: (example): Kind of particular resource; e.g. cow, syringe, lake, etc. | ||||
![]() ![]() |
SΣ | 1..1 | string | Label for Group | ||||
![]() ![]() |
S | 0..1 | markdown | Natural language description of the group | ||||
![]() ![]() |
Σ | 0..1 | unsignedInt | Number of members | ||||
![]() ![]() |
SΣ | 1..1 | Reference(ZM-Core Organization Profile | ZM-Core Practitioner Role Profile) | Entity that is the custodian of the Group's definition | ||||
![]() ![]() |
SΣ | 0..* | BackboneElement | Include / Exclude group members by Trait | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() |
Σ | 1..1 | CodeableConcept | Kind of characteristic Binding Description: (example): List of characteristics used to describe group members; e.g. gender, age, owner, location, etc. | ||||
![]() ![]() ![]() |
Σ | 1..1 | Value held by characteristic Binding Description: (example): Value of descriptive member characteristic; e.g. red, male, pneumonia, Caucasian, etc. | |||||
![]() ![]() ![]() ![]() |
CodeableConcept | |||||||
![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() |
Quantity | |||||||
![]() ![]() ![]() ![]() |
Range | |||||||
![]() ![]() ![]() ![]() |
Reference(Any) | |||||||
![]() ![]() ![]() |
Σ | 1..1 | boolean | Group includes or excludes | ||||
![]() ![]() ![]() |
0..1 | Period | Period over which characteristic is tested | |||||
![]() ![]() |
S | 0..* | BackboneElement | Who or what is in group | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() |
S | 1..1 | Reference(CareTeam | Device | Group | HealthcareService | Location | Organization | Patient | Practitioner | PractitionerRole | RelatedPerson | Specimen) | Reference to the group member | ||||
![]() ![]() ![]() |
S | 0..1 | Period | Period member belonged to the group | ||||
![]() ![]() ![]() |
S | 0..1 | boolean | If member is no longer in group | ||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| Group.language | Base | required | All Languages | 📍5.0.0 | FHIR Std. |
| Group.type | Base | required | Group Type | 📍5.0.0 | FHIR Std. |
| Group.membership | Base | required | Group Membership Basis | 📍5.0.0 | FHIR Std. |
| Group.code | Base | example | Not State | Unknown | |
| Group.characteristic.code | Base | example | Not State | Unknown | |
| Group.characteristic.value[x] | Base | example | Not State | Unknown |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | Group | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Group | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | Group | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | Group | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Group | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Other representations of profile: CSV, Excel, Schematron